package com.hk.domain.entity;

import lombok.*;
import lombok.Data;
import lombok.experimental.FieldNameConstants;

import java.util.List;
import java.util.Objects;

/**
 * @author: dpb
 * @date: 2022/11/1
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class Student {

    private String name;


    private String age;

    @ToString.Exclude
    private List<String> list;


    public Student(Student student) {
        if (Objects.nonNull(student)) {
            this.name = student.name;
            this.age = student.age;
        }
    }
}
